from models.base import BaseModel, db


class AlbumEpisodeInfo(BaseModel):
    __tablename__ = 'album_episode_info'
    __table_args__ = {'comment': '短剧剧集信息表模型'}

    id = db.Column(db.BigInteger, primary_key=True, autoincrement=True)
    album_info_id = db.Column(db.BigInteger, nullable=False, comment='短剧ID')
    title = db.Column(db.String(255), nullable=False, comment='剧集标题')
    seq_index = db.Column(db.Integer, nullable=False, comment='剧集集数')
    covers = db.Column(db.JSON, nullable=False, comment='封面图')
    video_library = db.Column(db.JSON, nullable=False, comment='视频素材')
    dy_episode_id= db.Column(db.BigInteger, nullable=False, comment='抖音剧集ID')